<template>
	<div id="vue-app">
		<el-row>
			<el-button icon="el-icon-search" circle></el-button>
			<el-button type="primary" icon="el-icon-edit" circle></el-button>
			<el-button type="success" icon="el-icon-check" circle></el-button>
			<el-button type="info" icon="el-icon-message" circle></el-button>
			<el-button type="warning" icon="el-icon-star-off" circle></el-button>
			<el-button type="danger" icon="el-icon-delete" circle></el-button>
		</el-row>
    <div style="margin-top:5vh"></div>
		<el-button @click="openView">跳转到子应用1</el-button>
	</div>
</template>

<script>
export default {
	name: 'App',
	created() {
		this.$message.success('获取子应用1的参数id为：' + this.$route.query.id)
	},
	methods: {
		openView() {
			// this.$mainApp.router.push({ name: 'sub-main', params: { id: 1 } })
			this.$mainApp.router.push({ name: 'sub-main', query: { id: 1 } })
		}
	}
}
</script>

<style lang="scss" scoped>
#vue-app {
	padding: 20px;
}
</style>
